#!/bin/sh
archType=$(uname -m)
if [ $archType == "x86_64" ]; then
    cpuType="amd64"
elif [ $archType == "aarch64" ]; then
    cpuType="arm64"
else
    cpuType=$(uname -m)
fi
cp /tmp/docker-hosts_linux_${cpuType} /usr/sbin/docker-hosts
chmod +x /usr/sbin/docker-hosts
rm -f /tmp/docker-hosts*


